package cn.sdc.bugKiller.bean;

import java.util.HashMap;

public class BugStatus {//extends CodeBean{

	public static HashMap<Integer,String> statusMap = new HashMap<Integer,String>();
	public static HashMap<Integer,String> processMap = new HashMap<Integer,String>();
	public static Integer STATUS_ALL = new Integer(0);
	public static Integer STATUS_UNFIX = new Integer(1);
	public static Integer STATUS_APPROVAL = new Integer(2);
	public static Integer STATUS_CLOSED = new Integer(3);
	
	public static Integer STATUS_NEWASSIGN = new Integer(-1);
	public static Integer STATUS_REASSIGN = new Integer(-2);
	public static Integer STATUS_FORCE_CLOSED = new Integer(4);
	
	static{
		statusMap.put(STATUS_UNFIX, "未修复");
		statusMap.put(STATUS_APPROVAL, "待审核");
		statusMap.put(STATUS_CLOSED, "已关闭");
		processMap.put(STATUS_NEWASSIGN, "已分配 ");
		processMap.put(STATUS_REASSIGN, "重分配 ");
		processMap.put(STATUS_FORCE_CLOSED, "已强制关闭");
		processMap.putAll(statusMap);
	}
	
	public static String getName(Integer id){
		if(statusMap.containsKey(id)){
			return statusMap.get(id);
		}else{
			return processMap.get(id);
		}
	}
	
	public static HashMap<Integer,String> getProcessStatus(){
		return processMap;
	}
}
